package org.csmzxy.class2333;

public class Example06_Person {
        public static void main(String[] args) {
            //创建一个学生对象
            Person student = new Person("小明", "学生");
            student.print();
            //创建一个教师对象
            Person teacher = new Person("张伟", "教师", "数学");
            teacher.print();
        }
}

